# coding:utf-8
# @Time    : 2018/9/14 4:23
# @Author  : 0x007er
# @File    : checkpgrab.py
# @Software: PyCharm
import requests
import re
dataurl = 'http://220.167.103.51/88.txt'
res = requests.get(dataurl).text
res = re.findall('{"ip":"(.*?)",',res,re.S)
for ip in res:
    try:
        res = requests.get('http://'+ip+'/static/home/css/common.css',headers={'Host':'jf.utmtoken.com'})
        print ip,res.text
    except Exception as e:
        print ip,e